<form method="post" action="%%GLOBAL_ShopPath%%/checkout.php" id="OrderConfirmationForm" onsubmit="return ExpressCheckout.ConfirmPaymentProvider()">
	<p class="ErrorMessage" style="display: %%GLOBAL_HideCheckoutError%%">
		%%GLOBAL_CheckoutErrorMsg%%
	</p>

	<p class="SuccessMessage" style="display: %%GLOBAL_HideCheckoutSuccess%%">
		%%GLOBAL_CheckoutSuccessMsg%%
	</p>

	<input type="hidden" name="action" value="pay_for_order" />
	<p>%%LNG_ReviewTheContentsOfYourOrder%%</p>
	<table class="CartContents" cellspacing="0" cellpadding="0">
		<thead>
			<tr>
				<th style="white-space: nowrap;">%%LNG_CartItems%%</th>
				<th style="white-space: nowrap; text-align: center;">%%LNG_Qty%%</th>
				<th style="white-space: nowrap; text-align: center;">%%LNG_ItemPrice%%</th>
				<th style="white-space: nowrap; text-align: right; width: 100px;">%%LNG_ItemTotal%%</th>
			</tr>
		</thead>
		<tfoot>
			%%GLOBAL_totals%%
		</tfoot>
		<tbody>
			%%SNIPPET_CartItems%%
		</tbody>
	</table>
	
	<div style="float: left; width: 590px;">
	
	<div id="payment_options" style="display: %%GLOBAL_HidePaymentOptions%%" class="PaymentOptions">
		<h3>%%LNG_HowWouldYouLikeToPay%%</h3>
		<div style="display: %%GLOBAL_HideUseStoreCredit%%; width: 420px;">
			<p class="MB10">
				<label><input type="radio" name="store_credit" id="store_credit" value="1" checked = 'checked'  onclick="update_order_credit_payment(true)" /> %%LNG_CheckoutUseStoreCredit%%</label>
			</p>
			<div id="use_store_credit" style="display: %%GLOBAL_HideUseStoreCredit%%">
				<p style="display: %%GLOBAL_HideLimitedCreditWarning%%" class="ErrorMessage">%%GLOBAL_CheckoutStoreCreditWarning%%</p>
				<div class="MB10">
					<table cellpadding="3">
						<tr>
							<td align="right"><strong>%%LNG_StoreCreditBalance%%</strong></td>
							<td align="right" width="100" >%%GLOBAL_StoreCredit%%</td>
						</tr>
						<tr>
							<td align="right"><strong>%%LNG_YourOrderTotal%%</strong></td>
							<td align="right" width="100" >%%GLOBAL_AdjustedTotalCost%%</td>
						</tr>
						<tr style="display: %%GLOBAL_HideLimitedCreditWarning%%">
							<td align="right"><strong>%%LNG_OutstandingOrderTotal%%</strong></td>
							<td align="right" width="100" class="ProductPrice">%%GLOBAL_Remaining%%</td>
						</tr>
						<tr style="display: %%GLOBAL_HideRemainingStoreCredit%%">
							<td align="right"><strong>%%LNG_RemainingStoreCredit%%</strong></td>
							<td align="right" width="100" style="color: green;">%%GLOBAL_RemainingCredit%%</td>
						</tr>
					</table>
				</div>

				<div class="MB10" style="display: %%GLOBAL_HideLimitedCreditPaymentOption%%">
					<p>%%LNG_CreditPaymentMethod%%</p>
					<div class="PL20 FloatLeft" id="credit_provider_list" style="margin-left: -20px; display: %%GLOBAL_HideLimitedCreditWarning%%">
						%%GLOBAL_StoreCreditPaymentProviders%%
						%%GLOBAL_CheckoutWith%%
					</div>
				</div>
			</div>
			<div class="MB10" style="display: %%GLOBAL_HideCreditAltOptionList%%">
				<label><input type="radio" name="store_credit" value="0"  onclick="update_order_credit_payment(false); checkout_provider_changed(this);" /> %%GLOBAL_CreditAlt%%</label>
			</div>
		</div>
	</div>

	<div id="provider_list" style="float: left; width: 100%;"><!-- display:%%GLOBAL_HidePaymentProviderList%% -->
		<ul style="margin: 0;">
			%%GLOBAL_PaymentProviders%%
		</ul>
	</div>
	
	
	
	</div>
	
	
	
	
	<div class="FloatRight CheckoutRedeemCoupon" style="display: %%GLOBAL_HideUseCoupon%%">
		<h4>%%GLOBAL_RedeemTitle%%</h4>
		<p>%%GLOBAL_RedeemIntro%%</p>
		<p>
			<div class="floatLeft">
				<strong>%%LNG_CouponCode1%%:</strong>
				<input type="text" name="couponcode" id="couponcode" style="width: 140px;" />
			</div>
			<div class="floatLeft botaoAplicarCupom">
				<!--<input type="button" name="apply_code" id="apply_code" value="%%LNG_Apply%%" onclick="return ExpressCheckout.ApplyCouponCode();" />-->
				<input type="image" src="%%GLOBAL_IMG_PATH%%/%%GLOBAL_SiteColor%%/GoButton.gif" name="apply_code" id="apply_code" value="%%LNG_Apply%%" title="Aplicar Cupom" onclick="return ExpressCheckout.ApplyCouponCode();" />
			</div>
		</p>
	</div>
	

	<div style="display: %%GLOBAL_HideOrderComments%%" class="CheckoutOrderComments">
		<hr class="Clear" />
		<h3>%%LNG_EnterOrderComments%%</h3>
		<div class="PL20">
			<textarea name="ordercomments" cols="40" rows="6" class="Field400">%%GLOBAL_OrderComments%%</textarea>
		</div>
	</div>

	<div style="%%GLOBAL_HideOrderTermsAndConditions%%" class="CheckoutHideOrderTermsAndConditions">
		<hr class="Clear" />
		<h3>%%LNG_TermsAndConditions%%</h3>
		<div class="PL20" style="%%GLOBAL_HideTermsAndConditionsTextarea%%">
			<textarea readonly="readonly" cols="60" rows="6" class="Field400">%%GLOBAL_OrderTermsAndConditions%%</textarea>
		</div>

		<div class="PL20 MT10">
			<input type="checkbox" name="AgreeTermsAndConditions" id="AgreeTermsAndConditions" /> <label for= "AgreeTermsAndConditions">%%GLOBAL_AgreeTermsAndConditions%%</label> %%GLOBAL_TermsAndConditionsLink%%
		</div>
	</div>

	<div style="display: %%GLOBAL_HideMailingListInvite%%">
		<hr class="Clear" />
		<h3>%%LNG_HearFromUsViaEmail%%</h3>

		<p class="PL20" style="display: %%GLOBAL_HideMailingListInvite%%">
			<input type="checkbox" class="CheckboxTogglesOtherElements" name="join_mailing_list" id="join_mailing_list" %%GLOBAL_NewsletterBoxIsTicked%% /> <label for="join_mailing_list">%%LNG_WouldLikeToReceiveNewsletter%%</label><br />

			<span style="display:%%GLOBAL_HideOrderCheckBox%%"><input type="checkbox" class="CheckboxTogglesOtherElements" name="join_order_list" id="join_order_list" %%GLOBAL_OrderBoxIsTicked%% /> <label for="join_order_list">%%LNG_NewsletterSpecialOffersText%%</label><br /></span>
		</p>
		<hr />
	</div>

	<p class="PL20">
		<!--<input id="bottom_payment_button" style="display:%%GLOBAL_HideButtomPaymentButton%%" type="image" src="%%GLOBAL_TPL_PATH%%/img/pagaragora.gif" value="%%LNG_ProceedToPayment%%" />-->
		<div id="bottom_payment_button" class="botaoEfetuarPagamento" onclick="return finalizaPedido($('#OrderConfirmationForm'), true);"></div>
	</p>
	%%Panel.ChooseCheckoutProviderJavaScript%%
	<script type="text/javascript">
		%%GLOBAL_PaymentButtonSwitch%%
		%%GLOBAL_ExpressCheckoutLoadPaymentForm%%
		lang.TickArgeeTermsAndConditions = '%%LNG_TickArgeeTermsAndConditions%%';

		$('#provider_list input[type=radio], #credit_provider_list input[type=radio]').click(function() {
			if(!$(this).hasClass('ProviderHasPaymentForm')) {
				ExpressCheckout.HidePaymentForm();
			}
			else {
				$('#CheckoutStepPaymentDetails').show();
			}
		});
		
		$('li.opcoesGrupoMetodosPagamento').click(function(){
			$('li.opcoesGrupoMetodosPagamento').each(function(){
				$(this).removeClass("itemMetodoPagamentoSelecionado");
			});
			
			$(this).addClass("itemMetodoPagamentoSelecionado");
			$('#provider_list ul li.tituloGrupoMetodosPagamento span').html('');
			$('#provider_list ul li.tituloGrupoMetodosPagamento span.metodo' + $(this).attr("targetMetodoSelecionado")).html($(this).attr("nomeMetodoPagamento"));
		});
	</script>
</form>

<script>
	/* CHECKOUT - CONFERENCIA DE PRODUTOS */
	$('#OrderConfirmationForm .CartContents tr.linhaProdutosCheckoutTR td').css('border-bottom', '1px dashed #BCBCBC');
	$('#OrderConfirmationForm .CartContents tr.linhaProdutosCheckoutTR:last td').css('border-bottom', 'none');
</script>